// 社保类型
import request from "@/utils/https/requests";

// 列表
export function sbTypeList(data: any) {
    return request({
        url: "/sbType/list", method: "post", data,
    });
}

// 添加
export function postAddSbType(data: any) {
    return request({
        url: "/sbType/postAdd", method: "post", data,
    });
}

// 修改
export function postModSbType(data: any) {
    return request({
        url: `/sbType/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteSbType(id: string) {
    return request({
        url: `/sbType/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteSbType = (id) => {
    return request({
        url: `/sbType/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function sbTypeDetail(id: string) {
    return request({
        url: `/sbType/detail/${id}`, method: "post",
    });
}